package cn.changeforyou.web.cloud.auth.entity;

import cn.changeforyou.web.cloud.webBase.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 组织架构表
 * @TableName org_info
 */
@TableName(value ="org_info")
@Data
public class OrgInfo extends BaseEntity implements Serializable {
    /**
     * 组织编码
     */
    private String orgCode;

    /**
     * 组织类型, 1:系统类型
     */
    private Boolean orgType;

    /**
     * 组织名
     */
    private String orgName;

    /**
     * 父层级id
     */
    @TableField(value = "parent_org_id")
    private Integer parentOrgId;

    /**
     * 是否是新组织起点
     */
    private boolean origin;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}